package cn.yitun.chat.yitunserverimapicore.business.group.service;

import cn.yitun.chat.yituncommonmessage.Info;
import cn.yitun.chat.yituncommonmessage.result.ResultMessage;
import cn.yitun.chat.yitunservercommonlib.crud.yitun.CrudService;
import cn.yitun.chat.yitunservercommonlib.dataentity.dto.group.GroupDto;
import cn.yitun.chat.yitunservercommonlib.dataentity.po.group.GroupInfo;
import cn.yitun.chat.yitunservercommonlib.dataentity.vo.group.GroupVo;

import java.util.List;

/**
 * 
 * Date 2019-01-21 11:39:20<br>
 * Description
 * 
 * @author yitun
 * @since 1.0.0
 */
public interface GroupService
		extends CrudService<GroupDto, GroupInfo, GroupVo>{


	GroupVo getGroupByCode(String code);

	Info update(Long key, Long userId, GroupDto group);

	List<GroupVo> queryGroupList(GroupDto groupQuery);

	ResultMessage add(Long key, Long userId, GroupDto group);

	List<GroupVo> getGroupList(List<Long> groupIds);

	/**
	 * 更新名称，头像，介绍
	 */
	ResultMessage updateGroupInfo(Long key, Long userId, GroupDto group);
}
